import request from '@/utils/request'
/**
 * 
 * 《 全员排查 》 页面接口文件
 *  
 */


// 查询全员排查 列表
export function listAllShoot(query) {
  return request({
    url: '/system/allstaff/list',
    method: 'get',
    params: query
  })
}

// 查询全员排查 详细
export function getAllShoot(id) {
  return request({
    url: '/system/allstaff/' + id,
    method: 'get'
  })
}

// 新增全员排查 
export function addAllShoot(data) {
  return request({
    url: '/system/allstaff',
    method: 'post',
    data: data
  })
}

// 修改全员排查 
export function updateAllShoot(data) {
  return request({
    url: '/system/allstaff',
    method: 'put',
    data: data
  })
}

// 删除全员排查 
export function delAllShoot(id) {
  return request({
    url: '/system/allstaff/' + id,
    method: 'delete'
  })
}

// 详情全员排查 
export function detailAllShoot(query) {
  return request({
    url: '/system/allstaff/getInfo',
    method: 'get',
    params:query
  })
}

//手工选择查询
export function searchStand(query) {
  return request({
    url: '/system/standard/list',
    method: 'get',
    params: query
  })
}
//隐患上报
export function searchHidden(query) {
  return request({
    url: '/system/rectification/report/list',
    method: 'get',
    params: query
  })
}
//填写完成发起按钮---
export function sendAllShoot(data) {
  return request({
    url: '/system/allstaff/examineAndApprove',
    method: 'post',
    data
  })
}
//全员排查详情---
export function detailViewAllShoot(id) {
  return request({
    url: `/system/allstaff/${id}`,
    method: 'get'
  })
}
//获取上次检查标准
export function listFrontAllShoot(data) {
  return request({
    url: '/system/allstaff/lastInspectionStandard',
    method: 'post',
    data
  })
}


//保存检查标准
export function saveAllShoot(data) {
  return request({
    url: '/system/allstaff/save',
    method: 'put',
    data
  })
}

//提交 《全员检查》 我提交的
export function submitAllShoot(data) {
  return request({
    url: '/system/allstaff/examineAndApprove',
    method: 'post',
    data
  })
}